import request from '@/utils/request'


export function listSuper(query) {
  return request({
    url: '/appusersuper/list',
    method: 'get',
    params: query
  })
}


export function getSuper(superId) {
  return request({
    url: '/appusersuper/' + superId,
    method: 'get'
  })
}

export function addSuper(data) {
  return request({
    url: '/appusersuper',
    method: 'post',
    data: data
  })
}

// 超级会员和手机号绑定
export function addSuperPhone(data) {
  return request({
    url: '/appusersuper/addphone',
    method: 'post',
    data: data
  })
}


export function updateSuper(data) {
  return request({
    url: '/appusersuper',
    method: 'put',
    data: data
  })
}


export function delSuper(superId) {
  return request({
    url: '/appusersuper/' + superId,
    method: 'delete'
  })
}


export function exportSuper(query) {
  return request({
    url: '/appusersuper/export',
    method: 'get',
    params: query
  })
}
//获取预热文案和协议
export function getCopy() {
  return request({
    url: '/appUserSuperCopy/getCopy',
    method: 'get'
  })
}
// 保存预热文案和协议
export function saveCopy(data) {
  return request({
    url: '/appUserSuperCopy/save',
    method: 'post',
    data,
  })
}
